import request from '@/utils/request'

// 查询开屏页管理列表
export function listOpeningPage(query) {
  return request({
    url: '/business/openingPage/list',
    method: 'get',
    params: query
  })
}

// 查询开屏页管理详细
export function getOpeningPage(id) {
  return request({
    url: '/business/openingPage/' + id,
    method: 'get'
  })
}

// 新增开屏页管理
export function addOpeningPage(data) {
  return request({
    url: '/business/openingPage',
    method: 'post',
    data: data
  })
}

// 修改开屏页管理
export function updateOpeningPage(data) {
  return request({
    url: '/business/openingPage',
    method: 'put',
    data: data
  })
}

// 删除开屏页管理
export function delOpeningPage(id) {
  return request({
    url: '/business/openingPage/' + id,
    method: 'delete'
  })
}
